package com.woniuxy.sale.entity.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SalePackManageDTO {

    @ExcelIgnore
    private Integer id;

    @Excel(name = "打包单编号", needMerge = true, width = 20)
    private String pno;

    @Excel(name = "选货单编号", needMerge = true, width = 20)
    private String sno;

    @Excel(name = "操作时间", needMerge = true, width = 20)
    private String operatorTime;

    @Excel(name = "操作人", needMerge = true, width = 20)
    private String operator;

    @ExcelIgnore
    private Integer sid;

    @Excel(name = "仓库编号", needMerge = true, width = 20)
    private Integer depotId;

    @Excel(name = "客户", needMerge = true, width = 20)
    private String customer;

    @Excel(name = "总价", needMerge = true, width = 20)
    private BigDecimal totalPrice;

    @ExcelCollection(name = "打包产品信息")
    private List<SalePackOrderItemDTO> orderItemList;
}
